Matlab vs Java